package com.wjh.pay.request;

import java.io.Serial;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 下单支付 请求参数
 * 
 * @author wenjianhai
 * @date 2023/6/24
 * @since JDK 17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
public class PayOrderRequest implements Serializable {
	@Serial
	private static final long serialVersionUID = -424629730565994085L;

	/** 订单Guid */
	@Schema(description = "订单Guid", requiredMode = Schema.RequiredMode.REQUIRED)
	@NotBlank(message = "请选择订单")
	private String orderGuid;

	/** 支付方式（1:支付宝, 2:微信, 3:通联） */
	@Schema(description = "支付方式（1:支付宝, 2:微信, 3:通联）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
	@NotNull(message = "请选择支付方式")
	private Integer payMode;
}
